﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Model.Admin
{
    public class ApartmentCrudViewModel
    {
        [Required(ErrorMessage = "Potrebno je unijeti kod.")]
        public string Code { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti zgradu.")]
        public string Building { get; set; }

        public List<State> States { get; set; }

        public int SelectedState { get; set; }

        public List<Floor> Floors { get; set; }

        public int SelectedFloor { get; set; }

        public List<RoomsNumber> RoomsNumbers { get; set; }

        public int SelectedRoomsNumber { get; set; }

        public List<Facade> Facades { get; set; }

        public int SelectedFacade { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti model.")]
        public int? ApartmentModel { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti cijenu.")]
        public double? Price { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti površinu.")]
        public double? Area { get; set; }
    }
}
